package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CHANCEFOLLOWLOG database table.
 * 
 */
@Entity
@NamedQuery(name="Chancefollowlog.findAll", query="SELECT c FROM Chancefollowlog c")
public class Chancefollowlog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CHANCELOG_SEQ", sequenceName="CHANCELOG_SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CHANCELOG_SEQ")
	private long cflid;

	private BigDecimal expectmoney;

	@Temporal(TemporalType.DATE)
	private Date expecttime;

	private BigDecimal logic;

	private String possibility;

	private String stage;

	private String stageremark;
	
	private String responsiablperson;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy-MM-dd")
	private Date updated;

	//bi-directional many-to-one association to Chanceinfo
	@ManyToOne
	@JoinColumn(name="CIID")
	private Chanceinfo chanceinfo;

	public Chancefollowlog() {
	}

	public long getCflid() {
		return this.cflid;
	}

	public void setCflid(long cflid) {
		this.cflid = cflid;
	}

	public BigDecimal getExpectmoney() {
		return this.expectmoney;
	}

	public void setExpectmoney(BigDecimal expectmoney) {
		this.expectmoney = expectmoney;
	}

	public Date getExpecttime() {
		return this.expecttime;
	}

	public void setExpecttime(Date expecttime) {
		this.expecttime = expecttime;
	}

	public BigDecimal getLogic() {
		return this.logic;
	}

	public void setLogic(BigDecimal logic) {
		this.logic = logic;
	}

	public String getPossibility() {
		return this.possibility;
	}

	public void setPossibility(String possibility) {
		this.possibility = possibility;
	}

	public String getStage() {
		return this.stage;
	}

	public void setStage(String stage) {
		this.stage = stage;
	}

	public String getStageremark() {
		return this.stageremark;
	}

	public void setStageremark(String stageremark) {
		this.stageremark = stageremark;
	}

	public Date getUpdated() {
		return this.updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}

	public Chanceinfo getChanceinfo() {
		return this.chanceinfo;
	}

	public void setChanceinfo(Chanceinfo chanceinfo) {
		this.chanceinfo = chanceinfo;
	}

	public String getResponsiablperson() {
		return responsiablperson;
	}

	public void setResponsiablperson(String responsiablperson) {
		this.responsiablperson = responsiablperson;
	}
	
	

}